package cn.bj.xd.mdy.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum DataTypeEnum {
    TEXT(2, "文本"),
    PHONE(3, "电话"),
    LANDlINE_PHONE(4, "座机"),
    EMAIL(5, "邮箱"),
    NUMBER(6, "数值"),
    ID_CARD(7, "证件"),
    AMOUNT(8, "金额"),
    RADIO_TILE(9, "单选"),
    CHECKBOX(10, "多选"),
    RADIO_DROPDOWN(11, "单选"),
    ATTACHMENT(14, "附件"),
    DATE(15, "日期"),
    DATETIME(16, "日期"),
    FREE_CONNECTION(21, "自由连接"),
    SEGMENT(22, "分段"),
    REGION(24, "地区"),
    CAPITAL_AMOUNT(25, "大写金额"),
    MEMBER(26, "成员"),
    DEPARTMENT(27, "部门"),
    LEVEL(28, "等级"),
    RELATED_RECORD(29, "关联记录"),
    EXTERNAL_FIELD(30, "他表字段"),
    FORMULA_NUMBER(31, "公式"),
    TEXT_COMBINE(32, "文本组合"),
    AUTO_ID(33, "自动编号"),
    CASCADER(35, "级联选择"),
    TOGGLE(36, "检查框"),
    SUMMARY(37, "汇总"),
    FORMULA_DATE(38, "公式"),
    LOCATION(40, "定位"),
    RICH_TEXT(41, "富文本"),
    SIGNATURE(42, "签名"),
    EMBED(45, "嵌入"),
    TIME(46, "时间"),
    BARCODE(47, "条码"),
    ORG_ROLE(48, "组织角色"),
    API_QUERY(49, "API查询"),
    API_QUERY_2(50, "API查询"),
    QUERY_RECORD(51, "查询记录"),
    NOTES(10010, "备注");

    @JsonValue
    private final Integer value;
    private final String desc;

    DataTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
